import { ComponentStyleDisplay } from '@/components/ComponentStyleDisplay';
import { Example, ExampleCode } from '@/components/Example';
import { Fragment } from '@/components/Fragment';
import { HighlightMatchDemo } from './demo';
import { HighlightMatchDefaultExample } from './examples';
## Demo
## Usage
Import the `HighlightMatch` primitive. Render the text as children of the `HighlightMatch`, then pass the word you want to highlight to the `query` prop.
```tsx file=./examples/HighlightMatchDefaultExample.tsx
```
Note: The query for the text is case insensitive.
## Styling
### Target classes